package com.twopai.login.model;

import com.twopai.framelibrary.entity.RunShopDetailEntity;
import com.twopai.framelibrary.http.ApiManager;
import com.twopai.framelibrary.http.BaseObjectBean;
import com.twopai.framelibrary.http.RetrofitClient;
import com.twopai.login.contact.LoginContact;

import io.reactivex.Observable;
import okhttp3.RequestBody;

/**
 * author : twopai
 * description :
 */
public class LoginModel implements LoginContact.model {
    public ApiManager getApiManager(){
        return RetrofitClient.getInstance().getApi(null);
    }
    @Override
    public Observable<BaseObjectBean<RunShopDetailEntity>> newsInfo(RequestBody body) {
        return getApiManager().newsInfo(body);
    }
}
